import API from "./config"
export default {
  queyCategorys () {
    return API.get(`/goods/getGoodsCateList`)
  },

  categoryDetail (page, pageSize, sortType, cateType = '', goodsCateId = '') {
    return API.post(`/goods/getGoodsListByCateId`, { page, pageSize, sortType, cateType, goodsCateId })
  },

  // 一级分类下的分类
  secondCategory (goodsCateId) {
    return API.get(`/goods/getTwoGoodsCateList/${goodsCateId}`)
  }
  
}